#include "csapp.h"
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>

void sigint_handler(int sig)
{
	printf("Caught SIGINT!\n");
	exit(0);
}

int main()
{
	if(signal(SIGINT,sigint_handler)==SIG_ERR)
		unix_error("singal error");
	pause();
	return 0;
}
